<?php
    session_start();
    $uid = $_SESSION['id'];
    if (isset($_SESSION['id'])) {
    $sql = "select * from user where id = $uid";
    $result = $link->query($sql);
    $row = mysqli_fetch_array($result);
?>
<div class="flex-container home-flex-info">
    <div class="flex-item info-padding">姓名：<?php echo $row['name']; ?></div>
    <div class="flex-item info-padding">证件号：<?php echo $row['number']; ?></div>
    <div class="flex-item info-padding"><a href="select-home.php">专业选择</a></div>
    <div class="flex-item info-padding"><a href="log.php">登入日志</a></div>
    <div class="flex-item info-padding"><a href="password.php">修改密码</a></div>
    <div class="flex-item info-padding"><a href="upload.php">资料上传</a></div>
    <div class="flex-item info-padding"><a href="point.php">资格审查与成绩查询</a></div>
    <div class="flex-item info-padding"><a href="update.php?action=loginout">退出登入</a></div>
</div>
<div class="info-padding">
    考生您好，第二学士学位招考流程：注册登入->报名->填写个人信息（包括上传资料）->资格审查（通过）->参与考试->成绩查询（通过）->等待录取。
</div>
<?php } else { header("Location: /"); } ?>